import request from '@/utils/request'

export function login(mobile, password) {
  return request({
    url: '/sys/login',
    method: 'post',
    data: {
      mobile,
      password
    }
  })
}

export const getUserInfo = () => {
  return request.get('/sys/profile', {

  })
}
export const changePassword = (oldPassword, newPassword) => {
  return request.put('/sys/user/updatePass', {
    oldPassword,
    newPassword
  })
}
export const getUserDetailById = (id) => {
  return request.get(`/sys/user/${id}`)
}
